/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package conexao;

import org.hibernate.Session;

/**
 *
 * @author davi
 */
public class ConectaHibernateMySql {
    public static void main(String[] args){
        Session sessao = null;
        
        try {
            sessao = HibernateUtil.getSessionFactory().openSession();
        System.out.print("conectou");
        } finally {
        
            sessao.close();
        }
        
        
    }
    
}
